package com.quasar.hpatient.onInterface;

import com.quasar.hpatient.model.httpmodel.AnotherResult;
import com.quasar.hpatient.model.httpmodel.DataStateResult;
import com.quasar.hpatient.model.litePalmodel.DailyItemInfodb;
import com.quasar.hpatient.model.medicalmodel.DailyRecordDetailsData;

import java.util.List;

/**
 * author : 许建宏
 * Date: 2017/11/24 0024
 * View:日常更多
 */

public interface OnDailyMoreListener {

    //更改回调
    void onSuccessSameday(List<DailyItemInfodb> data);
    //失败回调
    void onError(String msg);
    //界面更新
    void onRefreshUI();
    //日常记录提交
    void onSubmitSuccess(DataStateResult dataStateResult);
    //item增加
    void onItemSuccess(DataStateResult dataStateResult);
    //删除item
    void ondeleteSuccess(DataStateResult dataStateResult);
    //查询服务器返回的数据
    void onDailyInspect(AnotherResult<DailyRecordDetailsData> dataAnotherResult);
    //查询item最近折线图
    void onLineSuccess(AnotherResult<DailyRecordDetailsData> data);
    //查询历史一天item折线图
    void onLineOneDaySuccess(AnotherResult<DailyRecordDetailsData> data);
    //上次
    void onLastOneDaySuccess(AnotherResult<DailyRecordDetailsData> dataAnotherResult);
    //下次
    void onNextOneDaySuccess(AnotherResult<DailyRecordDetailsData> dataAnotherResult);
}
